/**
 * Created by Administrator on 2017/11/6.
 */
const webpackDevServer = require("webpack-dev-server");
const webpack = require("webpack");

const config = require("./webpack.config");

const options = {
    contentBase:"./dist",
    hot:true,
    host:"localhost"
};

webpackDevServer.addDevServerEntrypoints(config, options);
const compiler = webpack(config);
const server = new webpackDevServer(compiler,options);

server.listen(5000,'localhost',()=>{
   console.log('dev server listening on port 5000'); 
});